import { createRouter, createWebHashHistory  } from 'vue-router'

const router = createRouter({
	history: createWebHashHistory(),
	routes: [
		{ path: "/", redirect: "/selectGoods" },
		{
			path: '/',
			name: 'index',
			component: () => import('../views/index.vue'),
			// 嵌套路由
			children: [
				{
					path: '/selectGoods',
					name: 'selectGoods',
					component: () => import('../views/selectGoods.vue')
				},
			]
		}
	]
})
export default router
